import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path:'/login',
      name:'login',
      component:() => import('../views/login.vue'),
    },
    {
      path:'/main',
      name:'main',
      component:() => import('../views/main/MainView.vue'),
    },
    {
      path:'/main/usermanage',
      name:'manage',
      component:() => import('../views/main/UserManageView.vue'),
    },
    {
      path:'/main/adminsmanage',
      name:'amanage',
      component:() => import('../views/main/AdminsManageView.vue'),
    },
    //企业合作
    {
      path:'/corporatePromotion',
      name:'corporatePromotion',
      component:()=>import("../views/corporatePromotion/CorporateView.vue"),
    },

    //广告
        {
      path:'/advertise',
      name:'advertise',
      component:()=>import("../views/corporatePromotion/AdvertiseView.vue"),
    },
    //物流合作
     {
      path:'/logisticsPartner',
      name:'logisticsPartner',
      component:()=>import("../views/logisticsPartner/LogisticsPartnerView.vue"),
    },

    //物流查看
    {
      path:'/logisticsView',
      name:'logisticsView',
      component:()=>import("../views/logisticsPartner/LogisticsView.vue"),
    },
    //评论管理
    {
      path:'/commandView',
      name:'commandView',
      component:()=>import("../views/command/commandView.vue"),
    },
    //图片管理
    {
      path:'/photosManagement',
      name:'photosManagement',
      component:()=>import("../views/photosManagement/PhotosManagementView.vue"),
    },
      //订单
     {
      path:'/order/OrderPageView',
      name:'OrderPageView',
      component:() => import('../views/order/OrderPageView.vue'),
    },
       {
      path:'/order/OrderDetailView',
      name:'OrderDetailView',
      component:() => import('../views/order/OrderDetailView.vue'),
    },
    //库存
    {
      path:'/shoesizes/ShoesizesView',
      name:'ShoesizesView',
      component:() => import('../views/shoesizes/ShoesizesView.vue')
    },
    //商标
    {
      path:'/brand/BrandPageView',
      name:'BrandPageView',
      component:() => import('../views/brand/BrandPageView.vue')
    },
    {
      path:'/shoesInquiry/ShoesInquiryPageView',
      name:'ShoesInquiryPageView',
      component:() => import('../views/shoesInquiry/ShoesInquiryPageView.vue')
    }
  ],

  
})

export default router
